﻿
namespace ParaEditor.Domain.Entities
{
    public class Para3084Pk
    {
        public virtual short infoVer { get; set; }
        public virtual int lineid { get; set; }
        public virtual short statnid { get; set; }

        /// <summary>
        /// 判断两个对象是否相同，这个方法需要重写
        /// </summary>
        /// <param name="obj">进行比较的对象</param>
        /// <returns>真true或假false</returns>
        public override bool Equals(object obj)
        {
            if (obj is Para3084Pk)
            {
                Para3084Pk pk = obj as Para3084Pk;
                if (this.infoVer == pk.infoVer
                     && this.lineid == pk.lineid && this.statnid == pk.statnid)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
